package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 11010
* @description 针对表【nursing_project_plan(护理计划和项目关联表)】的数据库操作Mapper
* @createDate 2024-07-23 10:43:40
* @Entity com.zzyl.entity.NursingProjectPlan
*/
@Mapper
public interface NursingProjectPlanMapper  {

    void addBatch(@Param("list") List<NursingProjectPlan> collect);

    @Select("select * from nursing_project_plan where plan_id = #{id}")
    List<NursingProjectPlan> getByPlanId(Integer id);

    @Delete("delete from nursing_project_plan where plan_id = #{id}")
    void deleteByPlanId(Integer id);
}




